<template>
    <sky-base-page ref="skyBasePageRef" :api-obj="qly.api.user.pickup_point.index" type="data" refresherEnabled
                   padding="32rpx" bg-page-color="#f5f5f5">
        <template #default="{dataInfo}">
            <!--地址列表-->
            <point-card  :dataList="dataInfo" />
        </template>
        <template #footer>
            <up-button type="primary" shape="circle" color="#b07f63" text="新增自提点"
                       @tap="addAddress"></up-button>
        </template>
    </sky-base-page>
</template>
<script setup>
import PointCard from './components/pointCard.vue'

const skyBasePageRef = ref()

const success = () => {
    skyBasePageRef.value.refresh()
}

const addAddress=()=>{
    
    qly.page.open('/pages/my/point/save')
}
onLoad(()=>{
    qly.tool.componentEvent('pointRefresh',()=>{
        success()
    })
})
</script>
<style scoped lang="scss">
.search-box {
    padding: 24rpx;
    box-sizing: border-box;
    background-color: #fff;
}
</style>
